/**
 @author : MAMAMA
 @date: 2019-07-12
 @description: though the name of this file is Arduino.h, 
 it is used to run ModbusMaster.h in stm32f4 environment
*/

#ifndef _ARDUINO_H_
#define _ARDUINO_H_

#include "stm32f10x.h"
#include "Stream.h"

namespace modslave{
    typedef uint16_t word;
    typedef uint8_t byte;
}

typedef Stream HardwareSerial;

#define bitSet(value, bit) ((value) |= (1UL << (bit)))
#define bitClear(value, bit) ((value) &= ~(1UL << (bit)))

#endif
/* end of file */

